from . import myjson, protobuf

SerializeJson = 1
SerializeProtobuf = 2

SerializeType2Code = {
    SerializeJson: myjson.codecJson,
    SerializeProtobuf: protobuf.codecProtobuf,
}


# 获取序列化类
def get_codec(serialize_type):
    return SerializeType2Code.get(serialize_type)
